﻿using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SDF.Plugin.Misc.SAPAdapter.Models
{
    public class SapInstanceAPIModel
    {
        public string SAPInstance { get; set; }
    }

    public class TableInfoAPIModel : SapInstanceAPIModel
    {
        public string TableName { get; set; }
    }

    public class FunctionPramsModel : SapInstanceAPIModel
    {
        public string FunctionName { get; set; }
    }

    public class TableDataAPIModel : SapInstanceAPIModel
    {
        public string TableName { get; set; }
        public int RowCount { get; set; }
        public int RowSkip { get; set; }
        public string WhereClause { get; set; }
        public IEnumerable<string> Fields { get; set; }
    }

    public class ExecuteSAPFunctionAPIModel : SapInstanceAPIModel
    {
        public string FunctionName { get; set; }

        public JObject Data { get; set; }
    }

    public class QuerySAPInstanceModel : SapInstanceAPIModel
    {
        public string Name { get; set; }
    }
}